#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
#include<string.h>
int my_strcmp(const char* s1, const char* s2)
{
	assert(s1 && s2);
	while (*s1 == *s2)
	{
		if (*s1 == '\0')
		{
			return 0;
		}
		s1++;
		s2++;
	}
	return (*s1 - *s2);
}
int main()
{
	char str1[20] = "hello";
	char str2[] = "bit";
	int ret = my_strcmp(str1, str2);
	if (ret > 0)
	{
		printf("str1>str2");
	}
	else if (ret < 0)
	{
		printf("str1<str2");
	}
	else if (ret == 0)
	{
		printf("str1=str2");
	}
	return 0;
}